package cn.tedu.yushouge.pet.adopt.pojo.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

@Data
@Accessors(chain = true)
public class PetAddNewParamOfString implements Serializable {
    
    @NotNull(message = "添加宠物失败，必须提交宠物名称！")
    @ApiModelProperty(value = "宠物姓名", required = true, example = "小黑")
    private String petName;

    @NotNull(message = "添加宠物失败，必须提交宠物类型！")
    @ApiModelProperty(value = "宠物类型", required = true, example = "杜宾犬")
    private String petType;

    @NotNull(message = "添加宠物失败，必须提交宠物性别！")
    @ApiModelProperty(value = "宠物类型", required = true, example = "雄性")
    private String sex;

    @NotNull(message = "添加宠物失败，必须提交宠物状态！")
    @Range(max = 1, message = "添加宠物失败，宠物状态值必须1~0之间！")
    @ApiModelProperty( value = "宠物状态值必须是0或1，0为未领养，1未已领养", required = true, example = "0")
    private Integer state;

    @NotNull(message = "添加宠物失败，必须提交宠物生日！")
    @ApiModelProperty(value = "宠物生日", required = true, example = "2023-06-23")
    private String birthday;


    @NotNull(message = "修改宠物失败，必须提交宠物备注！")
    @ApiModelProperty(value = "宠物备注", required = true)
    private String remark;

}
